<table class="table">
    <foreach item="f" name="floors">
        <tr>
            <td>
                <a href="javascript:;" data-fid="{$f.id}" class="floor">{$f.name}</a>
            </td>
        </tr>
    </foreach>
</table>
<script type="text/javascript">
    $(function () {
        $('a.floor').floorBrandShow({url:"/Task/Mall/getBrands/fid/", floors:"#brands"});
    });
</script>